using System;
using PostSharp.Extensibility;

namespace CriticalSystems.Instrumentation
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    [RequirePostSharp("CriticalSystems.Instrumentation", "CriticalSystems.Instrumentation")]
    public sealed class LoggingInstanceAttribute: Attribute
    {
        public LoggingInstanceAttribute(string instance)
        {
            Logging.Instance = instance;
        }

        public string Instance
        {
            get
            {
                return Logging.Instance;
            }
            set
            {
                Logging.Instance = value;
            }
        }
    }
}